* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column
}

header img {
    width: 100%;
    height: auto;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 25px;
    text-decoration: none;
    padding-top: 25px;
}

header ul li a {
    text-decoration: none;
    color: black;
    font-family: 'Delius Unicase', sans-serif;
    font-size: 16px;
}

/* Bordure spécifique pour le lien Accueil */
header ul li a.contact-link {
    border: 2px solid rgb(147, 80, 4);
    padding: 8px 15px;
    border-radius: 20px;
}

.contact {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    background-image: url('../img/contact.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 30px;
}

.contact .Title h1 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 2.5rem;
    color: #ffd3b5;
    text-align: left;
    margin-left: 250px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.container-left {
    flex: 1;
    max-width: 500px;
}

.container-right {
    flex: 1;
    max-width: 500px;
    padding-left: 20px;
}

.container-right h2 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 1.8rem;
    color: rgb(147, 80, 4);
    margin-bottom: 25px;
}

.container-right p {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.container-right a {
    color: rgb(147, 80, 4);
    text-decoration: none;
    font-weight: 600;
}

.container-right a:hover {
    text-decoration: underline;
}

.container form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container form label {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.container form input,
.container form textarea {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Baloo Chettan 2', cursive;
    transition: border-color 0.3s ease;
}

.container form input:focus,
.container form textarea:focus {
    outline: none;
    border-color: rgb(147, 80, 4);
    box-shadow: 0 0 0 3px rgba(147, 80, 4, 0.1);
}

.container form button {
    background-color: rgb(147, 80, 4);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 80, 4, 0.3);
}

.container form button:hover {
    background-color: rgb(120, 65, 3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 80, 4, 0.4);
}

/* Pop-up Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.show {
    display: flex;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.popup-content h2 {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 1.8rem;
    color: rgb(147, 80, 4);
    margin-bottom: 20px;
}

.popup-content p {
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-close {
    background-color: rgb(147, 80, 4);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-family: 'Baloo Chettan 2', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: rgb(120, 65, 3);
    transform: translateY(-1px);
}

.success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.error-icon {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 15px;
}


/* Menu hamburger - caché par défaut */
.menu-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.menu-hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(147, 80, 4);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation du menu hamburger quand il est ouvert */
.menu-hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    header {
        position: relative;
        padding: 15px 20px;
    }

    header img {
        width: 20%;
    }

    .menu-hamburger {
        display: flex;
    }

    header ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    header ul.active {
        left: 0;
    }

    header ul li a {
        font-size: 24px;
        font-weight: 600;
        color: rgb(147, 80, 4);
        padding: 15px 30px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    header ul li a:hover {
        background-color: rgba(147, 80, 4, 0.1);
    }

    /* Styles pour les liens actifs en mobile */
    header ul li a.contact-link,
    header ul li a.accueil-link {
        background-color: rgb(147, 80, 4);
        color: white;
        border: none;
    }

    .contact .Title h1 {
        margin-left: 50px;
        font-size: 2rem;
    }

    .container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        margin: 0 20px;
    }

    .container-right {
        padding-left: 0;
    }
}

@media screen and (max-width: 768px) {
    header img {
        width: 25%;
    }

    .contact {
        height: 250px;
    }

    .contact .Title h1 {
        margin-left: 30px;
        font-size: 1.8rem;
    }

    main {
        padding: 20px 10px;
        min-height: 50vh;
    }

    .container {
        margin: 0 10px;
        padding: 15px;
    }

    .container-right h2 {
        font-size: 1.5rem;
    }

    .popup-content {
        padding: 25px;
        max-width: 350px;
    }
}

@media screen and (max-width: 480px) {
    header img {
        width: 30%;
    }

    .contact {
        height: 200px;
    }

    .contact .Title h1 {
        margin-left: 20px;
        font-size: 1.5rem;
    }

    header ul li a {
        font-size: 20px;
        padding: 12px 25px;
    }

    .container {
        margin: 0 5px;
        padding: 10px;
    }

    .container-right h2 {
        font-size: 1.3rem;
    }

    .container-right p {
        font-size: 14px;
    }

    .popup-content {
        padding: 20px;
        max-width: 300px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
    }

    .popup-content p {
        font-size: 14px;
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}